function ajaxLoading(){
	$("div#ajaxLoading").removeClass("hidden");
}

function ajaxLoadSuccess(){
	$("div#ajaxLoading").addClass("hidden");
}

function appendErrorMessages(messages){
	var l = messages.length;
	var html = '<div class="alert alert-danger">';
	
	for(var i = 0; i < l; i ++){
		html += "<p>" + messages[i].message + "</p>";
	}

	html += '</div>';

	$("div#panel-error div#error-content").html(html);
	$("div#panel-error").removeClass("hidden");
	$(window).scrollTop(0);
}

function deleteErrorMessages(){
	$("div#panel-error").addClass("hidden");
}

function reload(){
	$(window).scrollTop(0);
	window.location.reload();
}

$(document).ready(function() {
	
});